package com.xinzhi.controller;

import com.xinzhi.service.IMyBingBankCardService;
import com.xinzhi.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyBingBankCardController {
    @Autowired
    private IMyBingBankCardService myBingBankCardService;

    /**
     * 查询我的银行卡列表
     * @param user_Id 用户id
     * @return
     */
    @GetMapping("/getMyBingBankCard")
    public Result getMyBingBankCard(@RequestParam("user_id") Integer user_Id){
        return myBingBankCardService.getBankCardList(user_Id);
    }
}
